package com.lon.over.utils;

import android.widget.Toast;

import com.lon.over.base.BaseApplication;

/**
 * author: ctl | 陈泰龙
 * 创建时间: 2022/4/26
 * Describe:
 */
public class ToastUtils {

    private static Toast sToast;

    public static void toastShow(String tips) {
        if (sToast == null) {
            sToast = Toast.makeText(BaseApplication.getAppContext(), tips, Toast.LENGTH_SHORT);
        } else {
            sToast.setText(tips);
        }
        sToast.show();
    }
}
